﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace PHMEE
{
    public class UserResultDto
    {
        public bool Success { get; set; }
        public string Msg { get; set; }
        public UserResult Data { get; set; }
    }

    public class UserResult
    {
        public string UserName { get; set; }

        public string NickName { get; set; }
        public List<string> Roles { get; set; } = new List<string>();
        public string AccessToken { get; set; }
        public string RefreshToken { get; set; }
        public int Expires { get; set; }
    }

    public class OpeniddictToken
    {
        public string access_token { get; set; }
        public string refresh_token { get; set; }
        public int expires_in { get; set; }
    }
}
